const TOKEN = 'AUTH_TOKEN';

const getToken = () => {
  return window.localStorage.getItem(TOKEN);
};

const setToken = (value) => {
  return window.localStorage.setItem(TOKEN, value);
};

const clearToken = () => {
  return window.localStorage.removeItem(TOKEN);
};

export { getToken, setToken, clearToken };
